﻿using log4net.Core;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Niti.OrderManage.NitiOrderManageConsts;

namespace Niti.OrderManage.HelloWord.Impl
{
    [ApiController]
    [Route("[controller]/[action]")]
    [ApiExplorerSettings(GroupName = Grouping.GroupName_v1)]
    public class HelloWorldService : NitiOrderManageApplicationServiceBase, IHelloWorldService
    {
        private readonly Microsoft.Extensions.Logging.ILogger _logger;
        public HelloWorldService(ILogger<HelloWorldService> logger)
        {
            _logger = logger;
        }

        [HttpGet]
        public string HelloWorld()
        {
            return "Hello World";
        }

        [HttpGet]
        public void Hello()
        {
            throw new NotImplementedException("这是一个未实现的异常接口");
        }
    }
}
